GetSecond Function

public function GetSecond(time) result(second)

Gets the second of the datetime represented by this instance

Arguments

Type IntentOptional Attributes Name
type(DateTime), intent(in) :: time

Return Value integer(kind=short)


Source Code

FUNCTION  GetSecond &
!
(time) &
!
RESULT (second)

IMPLICIT NONE

! Arguments with intent(in):
TYPE (DateTime), INTENT(IN) :: time

! Local variables:
INTEGER (KIND = short) :: second

!------------end of declaration------------------------------------------------

second = time % second

END FUNCTION GetSecond